ADIFOR - Generating Derivative Codes form Fortran Programs
نویسندگان
چکیده
The numerical methods employed in the solution of many scientiic computing problems require the computation of derivatives of a function f : R n ! R m. Both the accuracy and the computationalrequirements of the derivativecomputation are usually of critical importance for the robustness and speed of the numerical solution. ADIFOR (Automatic Diierentiation In FORtran) is a source transformation tool that accepts Fortran 77 code for the computation of a function and writes portable Fortran 77 code for the computation of the derivatives. In contrast to previous approaches, ADIFOR views automatic diierentiation as a source transformation problem. ADIFOR employs the data analysis capabilities of the ParaScope Parallel ProgrammingEnvironment, which enable us to handle arbitraryFortran 77 codes and to exploit the computationalcontext in the computation of derivatives. Experimental results show that ADIFOR can handle real-life codes and that ADIFOR-generated codes are competitive with divided-dierence approximations of derivatives. In addition, studies suggest that the source-transformation approach to automatic diierentation may improve the time to compute derivatives by orders of magnitude.
منابع مشابه
ADIFOR Generating Derivative Codes from Fortran Programs
The numericalmethods employed in the solution of many scienti c computing problems require the computation of derivatives of a function f R R Both the accuracy and the computational requirements of the derivative computation are usually of critical importance for the robustness and speed of the numerical solution ADIFOR Automatic Di erentiation In FORtran is a source transformation tool that ac...
متن کاملApplication of Automatic Diierentiation to Groundwater Transport Models
Automatic diierentiation is a technique for generating eecient and reliable derivative codes from computer programs with minimal human eeort. Derivatives of model output with respect to input are obtained exactly. No intrinsic limits to program length or complexity exist for this procedure. Calculation of derivatives of complex numerical models is required in system optimization, parameter iden...
متن کاملApplication of Automatic Differentiation to Groundwater Transport Models
Automatic diierentiation (AD) is a technique for generating eecient and reliable derivative codes from computer programs with a minimum of human eeort. Derivatives of model output with respect to input are obtained exactly. No intrinsic limits to program length or complexity exist for this procedure. Calculation of derivatives of complex numerical models is required in systems optimization, par...
متن کاملApplication of Automatic Differentiation to 3-D Volume Grid Generation Software1
Automatic differentiation (AD) is a methodology for developing reliable sensitivity-enhanced versions of arbitrary computer programs with little human effort. As such, it can vastly accelerate the use of advanced simulation codes in a multidisciplinary design optimization context, as the time for generating and verifying derivative codes is greatly reduced. In this paper, we report on the appli...
متن کاملAdifor Working Note #2: Using Adifor to Compute Dense and Sparse Jacobians Using Adifor to Compute Dense and Sparse Jacobians
ADIFOR is a source translator that, given a collection of Fortran subroutines for the computation of a \function," produces Fortran code for the computation of the derivatives of this function. More speciically, ADIFOR produces code to compute the matrix-matrix product JS, where J is the Jacobian of the \function" with respect to the user-deened independent variables, and S is the composition o...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Scientific Programming
دوره 1 شماره
صفحات -
تاریخ انتشار 1992